﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace JXC.Core.Models
{
    /// <summary>
    /// 用户信息表
    ///  [ForeignKey("UserInfosId")]
    /// </summary>
    public class UserInfos
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        //用户编号
        public Guid Id { get; set; }
        //用户账号
        public string UserName { get; set; }
        //用户密码
        public string UserPwd { get; set; }
        //用户状态标识
        public int UserState { get; set; }
     
        //创建人
        public string Creator { get; set; }
        //创建时间
        public DateTime CreateTime { get; set; }
        //是否删除
        public int IsDeleted { get; set; }

        public List<CaigouOrder> OperatorsCaiGouOrder { get; set; } //操作人
        public List<CaigouOrder> ExaminersGouOrder { get; set; } //审核人
        public List<CaigouOrder> PurchasingAgentCaiGouOrder { get; set; }//采购人

        public List<CaigouEnter> CaigouEntersPurchasingAgent { get; set; }//采购入库，采购人
        public List<CaigouEnter> CaigouEntersOperator { get; set; }//采购入库，操作员
        public List<CaigouEnter> CaigouEntersExaminer { get; set; }//采购入库，审核人
        public List<CaigouEnter> CaigouEntersOpmanl { get; set; }//采购入库，修改人

        public List<CaigouReturned> CaigouReturnedsOperator { get; set; }//采购退货  操作员
        public List<CaigouReturned> CaigouReturnedsExaminer { get; set; }//采购退货  审核人
        public List<CaigouReturned> CaigouReturnedsShipper { get; set; }//采购退货  退货人


        public List<CaigouDuepay> CaigouDuepaysOperator { get; set; }//应付款  操作员
        public List<CaigouDuepay> CaigouDuepaysExaminer { get; set; }//应付款  审核人

        public List<CaigouPaid> CaigouPaidsOperator { get; set; }//采购付款  操作员
        public List<CaigouPaid> CaigouPaidsExaminer { get; set; }//采购付款  审核员


    }
}
